<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.*;"%><!--导入java.util下所有类  -->
<HEAD id=Head1>
<TITLE>导航</TITLE>
<STYLE type=text/css>
BODY,TD{
	FONT-SIZE: 11px;
	COLOR: #003366;
	FONT-FAMILY: Verdana
}
.mainMenu {
	FONT-WEIGHT: bold;
	FONT-SIZE: 14px;
	cursor: pointer;
	COLOR: #000000
}

A.style2:link,A.style2:visited {
	PADDING-LEFT: 4px;
	COLOR: #0055bb;
	TEXT-DECORATION: none
}
A.style2:hover,A.active {
	PADDING-LEFT: 4px;
	COLOR: #ff0000;
	TEXT-DECORATION: none
}
.span {
	COLOR: #ff0000;
}
</STYLE>
<SCRIPT language=javascript>
	//设置菜单栏点击事件
	function MenuDisplay(obj_id) {
		for (var i = 1; i <= 2; i++) {
			var obj = document.getElementById('table_' + i);
			if(obj){
				document.getElementById('table_' + i).style.display = 'none';
				document.getElementById('table_' + i + 'Span').innerText = '＋';
			}
			
		}
		var obj = document.getElementById(obj_id);
		if(obj){
			if (obj.style.display == 'none') {
				obj.style.display = 'block';
				document.getElementById(obj_id + 'Span').innerText = '－';
			} else {
				obj.style.display = 'none';
				document.getElementById(obj_id + 'Span').innerText = '＋';
			}
		}
		
	}
</SCRIPT>
</HEAD>
<BODY style="background-color: #2a9ff8;">
		<h2 style="margin-left:28px;font-size:large;">功能菜单</h2>
		<TABLE cellSpacing=0 cellPadding=0 width=210 align=center border=0>
			<TBODY>
				<TR>
				<TD bgColor=#ffffff>
					<TABLE cellSpacing=0 cellPadding=3 width=165 align=center border=0>
						<TBODY>
							<!--第一部分开始-->
							<TR>
								<TD class=mainMenu onClick="MenuDisplay('table_1');">
									<SPAN class=span id=table_1Span>＋</SPAN> 学生信息管理
								</TD>
							</TR>
							<TR>
								<TD>
									<%
										String sid = (String) request.getSession().getAttribute("sid");
									%>
									<TABLE id=table_1 style="DISPLAY: none" cellSpacing=0 cellPadding=2 width=155 align=center border=0>
										<TBODY>
											<TR>
												<TD class=menuSmall>
													<A class=style2 href="/classStudentMS/selectUserServlet?sid=<%=sid %>" target=main>－个人信息详情</A>
												</TD>
											</TR>
											<TR>
												<TD class=menuSmall>
													<A class=style2 href="/classStudentMS/getMyUserServlet" target=main>－个人信息修改</A>
												</TD>
											</TR>
											<TR> 
												<TD class=menuSmall>
													<A class=style2 href="/classStudentMS/studentListServlet" target=main>－ 学生信息列表</A>
												</TD>
											</TR>
										</TBODY>
									</TABLE>
								 </TD>
							 </TR>
							 <!--第一部分结束-->
							 
							<!--第二部分开始-->
							<TR>
								<TD class=mainMenu onClick="MenuDisplay('table_2');">
									<SPAN class=span id=table_2Span>＋</SPAN>用户管理
								</TD>
							</TR>
							<TR>
								<TD>
									<TABLE id=table_2 style="DISPLAY: none" cellSpacing=0 cellPadding=2 width=155 align=center border=0>
										<TBODY>
											<TR>
												<TD class=menuSmall>
													<A class=style2 href="/classStudentMS/alterPassword.jsp" target=main>－ 修改密码</A>
												</TD>
											</TR>
											<TR>
												<TD class=menuSmall>
													<A class=style2 href="/classStudentMS/login.jsp" target=main>－安全退出</A>
												</TD>
											</TR>
										</TBODY>
									</TABLE>
								</TD>
							</TR>
							<!--第二部分结束-->
				</TBODY>
			</TABLE>
</BODY>
</HTML>
